package cn.lili.controller.feign;

import cn.lili.modules.statistics.client.PlatformViewClient;
import cn.lili.modules.statistics.entity.dos.PlatformViewData;
import cn.lili.modules.statistics.service.PlatformViewService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author paulG
 * @since 2022/1/17
 **/
@RestController
@RequiredArgsConstructor
public class PlatformViewFeignController implements PlatformViewClient {

    private final PlatformViewService platformViewService;

    /**
     * 批量保存
     *
     * @param platformViewDataList 平台pv统计集合
     * @return 是否操作成功
     */
    @Override
    public boolean saveBatch(List<PlatformViewData> platformViewDataList) {
        return platformViewService.saveBatch(platformViewDataList);
    }
}
